package com.sss.hloster04;

import java.util.Scanner;

public class JavaExercise15 {

	public static void main(String[] args) {
		test15();

	}

	/**
	 * 题目：输入三个整数x,y,z，请把这三个数由小到大输出。
	 */
	private static void test15() {
		Scanner input = new Scanner(System.in);
		System.out.print("輸入整数  x:");
		int x = input.nextInt();
		System.out.print("输入整数  y:");
		int y = input.nextInt();
		System.out.print("输入整数  z:");
		int z = input.nextInt();
		if (x >= y) {
			if (x >= z) {
				if (y >= z) {
					System.out.println(z + "  " + y + "  " + x);
				} else {
					System.out.println(y + "  " + z + "  " + x);
				}
			} else {
				System.out.println(y + "  " + x + "  " + z);
			}
		} else {
			if (x >= z) {
				System.out.println(z + "  " + x + "  " + y);
			} else {
				if (y >= z) {
					System.out.println(x + "  " + z + "  " + y);
				} else {
					System.out.println(x + "  " + y + "  " + z);
				}
			}
		}
	}
}
